﻿package mortal.game.view.copy.groupCopy.item
{
    import com.mui.controls.*;
    import com.mui.core.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class GroupCopyBarCell extends GSprite
    {
        protected var _bar:GBitmap;
        private var _enAble:Boolean;

        public function GroupCopyBarCell()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bar = UIFactory.gBitmap(ImagesConst.GroupCopyTeamBoLineUp, 0, 0, this);
            this._enAble = true;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._enAble = false;
            this._bar = null;
            return;
        }// end function

        public function updateStatu(param1:Boolean) : void
        {
            if (param1 == this._enAble)
            {
                return;
            }
            this._enAble = param1;
            if (this._enAble)
            {
                this._bar.bitmapData = GlobalClass.getBitmapData(ImagesConst.GroupCopyTeamBoLineUp);
            }
            else
            {
                this._bar.bitmapData = GlobalClass.getBitmapData(ImagesConst.GroupCopyTeamBoLineDown);
            }
            return;
        }// end function

    }
}
